package com.gome.boot.config.mq.rocketmq;

/**
 * RocketMQ延迟发送级别.
 * 默认：1-1s 2-5s 3-10s 4-30s 5-1m 6-2m 7-3m 8-4m 9-5m 10-6m 11-7m 12-8m 13-9m 14-10m 15-20m 16-30m 17-1h 18-2h
 *
 * @author baoxiufeng
 */
public enum MQDeleyLevel {

    LEVEL_0(0, "0s"),
    LEVEL_1(1, "1s"),
    LEVEL_2(2, "5s"),
    LEVEL_3(3, "10s"),
    LEVEL_4(4, "30s"),
    LEVEL_5(5, "1m"),
    LEVEL_6(6, "2m"),
    LEVEL_7(7, "3m"),
    LEVEL_8(8, "4m"),
    LEVEL_9(9, "5m"),
    LEVEL_10(10, "6m"),
    LEVEL_11(11, "7m"),
    LEVEL_12(12, "8m"),
    LEVEL_13(13, "9m"),
    LEVEL_14(14, "10m"),
    LEVEL_15(15, "20m"),
    LEVEL_16(16, "30m"),
    LEVEL_17(17, "1h"),
    LEVEL_18(18, "2h");

    private int level;
    private String comments;

    MQDeleyLevel(int level, String comments) {
        this.level = level;
        this.comments = comments;
    }

    public int getLevel() {
        return level;
    }

    public String getComments() {
        return comments;
    }
}
